package com.unknowpupil.eth.exception;

import com.unknowpupil.eth.enums.ErrorCodeEnum;

/**
 * @Classname: WalletException
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/1/3 17:23
 * @Description:
 * @Version: 1.0
 */
public class WalletException extends RuntimeException {
    private Integer code;
    public WalletException(ErrorCodeEnum errorCodeEnum){
        super(errorCodeEnum.getMsg());
        this.code = errorCodeEnum.getCode();
    }
    public WalletException(int code,String msg){
        super(msg);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
